const express = require('express');

const LoginController = require('../controllers/v1/login/LoginController');

const test = require('../controllers/v1/qdl/test');
const qdl = require('../controllers/v1/qdl/qdl');
const arn = require('../controllers/arn/index');

var router = express.Router();
router.get('/:name',LoginController.login);
router.post('/api/login',LoginController.loginOut);

router.all('/qdl/center',test.center);
router.all('/qdl/morning',test.morningEx);
router.all('/qdl/score',test.score);

/*课程有关的*/
router.all('/api/course/app/getCourseScheduleList',qdl.getCourseScheduleList);//课程表列表
router.all('/api/course/app/getCourseScheduleDetail',qdl.getCourseScheduleDetail);//课次详情

router.all('/api/course/app/getSelectCourseList',qdl.getSelectCourseList);//选课列表
router.all('/api/course/app/getCourseScheduleDescDetail',qdl.getCourseScheduleDescDetail);//课程详情

/*晨练*/
router.all('/api/runningRule/app/getMySchoolTarget',qdl.getMySchoolTarget);//查询本学期运动目标完成情况
router.all('/api/runningRule/app/getMorningTrainRule',qdl.getMorningTrainRule);//查询晨练规则
router.all('/api/morningtrain/app/sign',qdl.morningtrainSign);//晨练签到
router.all('/api/morningtrain/app/signout',qdl.morningtrainSignOut);//晨练签退

/*
 AR相关的
 */
router.all('/ar/contacts',arn.contactList);//联系人列表
router.all('/ar/chatlist',arn.chatList);//聊天列表
module.exports = router;
